﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Lead Type Repository Interface
    /// </summary>
    public interface ILeadTypeRepository
    {
        /// <summary>
        /// Get All Lead Type
        /// </summary>
        /// <returns></returns>
        IQueryable<LeadType> FindAllLeadType();

        /// <summary>
        /// Get Lead Type By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<LeadType> FindLeadTypeByName(string strQuery);

        /// <summary>
        /// Get Lead Type By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        LeadType GetLeadTypeById(int id);

        /// <summary>
        /// Add Lead Type in the Database
        /// </summary>
        /// <param name="leadType"></param>
        void Add(LeadType leadType);

        /// <summary>
        /// Delete Lead Type from the Database
        /// </summary>
        /// <param name="leadType"></param>
        void Delete(LeadType leadType);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}